package com.lcf.system.entity;

import com.lcf.framework.model.BaseNoTenantModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 收入统计(TotalPrice)表实体类
 *
 * @author lcf
 * @since 2025-05-02 11:55:04
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class TotalPrice extends BaseNoTenantModel<TotalPrice> {
    //id
    private Long id;
    //用户id
    private Long userId;
    //累计收入
    private BigDecimal totalPrice;

    public TotalPrice(long userId, BigDecimal totalPrice) {
        this.userId = userId;
        this.totalPrice = totalPrice;
    }
}

